package ZiXi;

import java.util.Random;

public class Bu0401 {
    public static void main(String[] args) {
        int[] arr1=new int[5];
        int[] arr2=new int[2];
        int count=1;
        Random k=new Random();

        for (int i = 0; i < arr1.length; i++) {
            arr1[i]=k.nextInt(9)+1;
        }
        for (int i = 0; i < arr1.length; i++) {
            if(arr1[i]%2==0){
               arr2[0]++;
            }
            if(arr1[i]%3==0){
                arr2[1]++;
            }
        }
        for (int i = 0; i < arr2.length; i++) {
            System.out.println(arr2[i]);
        }
    }
}
